import Foundation

enum TaskStatus: String, CaseIterable {
    case pending
    case queued
    case downloading
    case completed
    case failed
    case cancelled
}

struct DownloadTask {
    var id: String
    var url: String
    var status: TaskStatus
    var createdAt: Date
    var updatedAt: Date
    var error: String?
    var filePath: String?
}